import './mock'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './eventBus'
import "./styles/global.less"
import store from './store';
import showMessage from './utils/showMessage';
Vue.prototype.$showMessage = showMessage

// 初始化setting数据
store.dispatch("setting/fetchSetting");


// 自定义组件
import vLoading from './directive/Loading';
import vLazy from './directive/lazy';
Vue.directive('loading', vLoading);
Vue.directive('lazy', vLazy);

new Vue({
    router,
    store,
    render: h => h(App),
}).$mount('#app')